home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-03 / qbasicpg.zip / IF-1.BAS < prev    next >
BASIC Source File  |  1989-08-31  |  308b  |  11 lines

  1. ' IF-1.BAS
  2. ' This program demonstrates the IF statement.
  3.  
  4. CLS
  5.  
  6. INPUT "How many Rockettes dance at Radio City Music Hall?  ", guess%
  7. IF guess% = 36 THEN PRINT "That's right!!"
  8. IF guess% <> 36 THEN PRINT "Sorry!  The correct answer is 36!"
  9. PRINT "Radio City Music Hall opened on December 27, 1932."
  10.  
  11.